package com.ruoyi.common.core.domain.entity;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;

/**
 * @author：liyouxin
 * @date：2023/11/20 20:23
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class StorePanDetail extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    @ApiModelProperty("${comment}")
    private Long id;

    /** 盘点单号 */
    @Excel(name = "盘点单号")
    @ApiModelProperty("盘点单号")
    private String panNum;

    /** 园区 */
    @Excel(name = "园区")
    @ApiModelProperty("园区")
    private String area;

    @Excel(name = "食材名称")
    private String name;

    /** 配料名称 */
    private Long resourceId;

    /** 本期库存数量 */
    @Excel(name = "本期库存数量")
    @ApiModelProperty("本期库存数量")
    private BigDecimal storeAmount;

    /** 盘点数量 */
    @Excel(name = "盘点数量")
    @ApiModelProperty("盘点数量")
    private BigDecimal realAmount;

    /** 上期库存数量 */
    @Excel(name = "上期库存数量")
    @ApiModelProperty("上期库存数量")
    private BigDecimal lastAmount;

    /** 本期出库数量 */
    @Excel(name = "本期出库数量")
    @ApiModelProperty("本期出库数量")
    private BigDecimal outAmount;

    /** 本期入库数量 */
    @Excel(name = "本期入库数量")
    @ApiModelProperty("本期入库数量")
    private BigDecimal inAmount;

    /** 单价 */
    @Excel(name = "单价")
    @ApiModelProperty("单价")
    private BigDecimal price;

    /** 小计 */
    @Excel(name = "小计")
    @ApiModelProperty("小计")
    private BigDecimal total;

    private String unit;

    private String resourceName;

    public String getResourceName() {
        return resourceName;
    }

    public void setResourceName(String resourceName) {
        this.resourceName = resourceName;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setPanNum(String panNum)
    {
        this.panNum = panNum;
    }

    public String getPanNum()
    {
        return panNum;
    }
    public void setArea(String area)
    {
        this.area = area;
    }

    public String getArea()
    {
        return area;
    }

    public Long getResourceId() {
        return resourceId;
    }

    public void setResourceId(Long resourceId) {
        this.resourceId = resourceId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setStoreAmount(BigDecimal storeAmount)
    {
        this.storeAmount = storeAmount;
    }

    public BigDecimal getStoreAmount()
    {
        return storeAmount;
    }
    public void setRealAmount(BigDecimal realAmount)
    {
        this.realAmount = realAmount;
    }

    public BigDecimal getRealAmount()
    {
        return realAmount;
    }
    public void setLastAmount(BigDecimal lastAmount)
    {
        this.lastAmount = lastAmount;
    }

    public BigDecimal getLastAmount()
    {
        return lastAmount;
    }
    public void setOutAmount(BigDecimal outAmount)
    {
        this.outAmount = outAmount;
    }

    public BigDecimal getOutAmount()
    {
        return outAmount;
    }
    public void setInAmount(BigDecimal inAmount)
    {
        this.inAmount = inAmount;
    }

    public BigDecimal getInAmount()
    {
        return inAmount;
    }
    public void setPrice(BigDecimal price)
    {
        this.price = price;
    }

    public BigDecimal getPrice()
    {
        return price;
    }
    public void setTotal(BigDecimal total)
    {
        this.total = total;
    }

    public BigDecimal getTotal()
    {
        return total;
    }

    @Override
    public String toString() {
        return "StorePanDetail{" +
                "id=" + id +
                ", panNum='" + panNum + '\'' +
                ", area='" + area + '\'' +
                ", resourceId=" + resourceId +
                ", storeAmount=" + storeAmount +
                ", realAmount=" + realAmount +
                ", lastAmount=" + lastAmount +
                ", outAmount=" + outAmount +
                ", inAmount=" + inAmount +
                ", price=" + price +
                ", total=" + total +
                ", name='" + name + '\'' +
                ", unit='" + unit + '\'' +
                ", resourceName='" + resourceName + '\'' +
                '}';
    }
}
